
package CCT220_Aula09_Exercicio01_13106;


import javax.swing.JOptionPane;


/**
 * Classe aluno definida no enunciado do Exercicio
 * 1
 * 
 * @author marcel
 * 
 */
public class Aluno extends Pessoa {
	/*
	 * ************Atributes************
	 */
	private String aDisciplina = "";


	/*
	 * ************Seters************
	 */
	/**
	 * @param pDisciplina
	 */
	public void setaDisciplina(String pDisciplina) {

		if (pDisciplina.equals(Util.CC) || pDisciplina.equals(Util.SI)) {
			this.aDisciplina = pDisciplina;
		} else {
			JOptionPane.showMessageDialog(null, "\n\'" + pDisciplina
			        + "\'\n Nao e uma disciplina aceita!", "Erro",
			        JOptionPane.ERROR_MESSAGE);
		}
	}


	/*
	 * ************Geters************
	 */
	/**
	 * @return aDisciplina
	 */
	public String getaDisciplina() {

		return aDisciplina;
	}

}
